package com.li.mapper;

import com.li.pojo.dto.RoleDeptDTO;
import com.li.pojo.po.RoleDept;
import com.li.pojo.vo.RoleVO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RoleDeptMapper {
    @Select("select * from sys_role_dept where role_id = #{roleId}")
    RoleDept getByRoleId(Integer roleId);

    @Insert("insert into sys_role_dept (role_id,dept_ids,data_scope) values (#{roleId},#{deptIds},#{dataScope})")
    void addRoleDept(RoleDept roleDept);

    void updateRoleDept(RoleDept roleDept);

}
